//
//  NetManager.h
//  网络记事本
//
//  Created by wukeng on 16/4/2.
//  Copyright © 2016年 wukeng. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NetManager : NSObject
//添加记事的方法
+(void)AddDataWithContent:(NSString *)content
                 WithData:(NSString *)time
         WithSuccessBlock:(void(^)(NSData *data))successBlock
            WithFailBlock:(void(^)(NSError *error))failBlock;
//tableVie上显示的数据的方法
+(void)getDataWithSuccessBlock:(void(^)(NSArray *arr))successBlock
                 WithFailBlock:(void(^)(NSError *error))failBlock;

+(void)deleteNoteWithNoteID:(int)noteID;
@end
